<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('政府采购协议供货供货商报价单')" />
</head>
<body>
<div id="box" style="width: 860px;margin: 0px auto;">
    <div id="content" style="border: none;min-height: 850px;">
        <div id="logo" style="position: absolute;right: 50px;top: 20px;"><img src="../static/img/zc.png" th:src="@{/img/zc.png}" style="float: right;width: 120px;height: 120px;"></div>
        <h2 style="font-size:30px;margin: 40px;text-align: center;">政府采购协议供货供货商报价单</h2>
        <div>
            <!--<c:forEach items="${offerDetails}" var="offerDetails" begin="0" end="0" varStatus="vs">-->
              <!--<span th:each="offerDetails:${offerDetails}">-->
                <span>报价日期:</span>
                <span style="margin-left: 2px;" th:text="${#strings.substring(offerDetails[0].crateTime,0,4)}"></span><span>  年</span>
                <span th:text="${#strings.substring(offerDetails[0].crateTime,5,7)}"></span><span>月</span>
                <span th:text="${#strings.substring(offerDetails[0].crateTime,8,10)}"></span><span>日</span>
              <!--</span>-->
            <!--</c:forEach>-->

        </div>
        <table class="detail" style="width: 100%;margin-top: 20px;">
            <thead>
            <tr>
                <th rowspan=2 style="width: 2em;text-align: center;">商品名称</th>
                <th rowspan=2 style="width: 2em;text-align: center;">品牌</th>
                <th rowspan=2 style="width: 2em;text-align: center;">数量</th>
                <th rowspan=2 style="width: 4em;text-align: center;">商品要求</th>
                <th rowspan=2 style="width: 5em;text-align: center;">供货单位</th>
                <th rowspan=2>供应参数</th>
                <th rowspan=2 style="width: 80px;text-align: center;">报价（元）</th>
            </tr>
            </thead>

            <tbody style="padding-top:15px;">
            <!--<c:forEach items="${offerDetails}" var="offerDetails" varStatus="vs">-->
                <tr th:each="offerDetails,loopStatus:${offerDetails}">
                    <td th:if="${loopStatus.count} eq 1" th:rowspan="${offerDetailsSize}" th:text="${offerDetails.goodsName}"></td>
                    <!--<c:if test="${vs.index==0}">-->
                    <!--th:text="${offerDetails.pinpai}"-->
                        <td th:if="${loopStatus.count} eq 1" th:rowspan="${offerDetailsSize}" >无</td>
                    <!--</c:if>-->
                    <!--<c:if test="${vs.index==0}">-->
                        <td th:if="${loopStatus.count} eq 1" th:rowspan="${offerDetailsSize}" th:text="${offerDetails.count}"></td>
                    <!--</c:if>-->
                    <!--<c:if test="${vs.index==0}">-->
                        <td th:if="${loopStatus.count} eq 1" style="width: 4em; word-break: break-all;" th:rowspan="${offerDetailsSize}" th:text="${offerDetails.demand}"></td>
                    <!--</c:if>-->
                    <td style="width: 5em;" th:text="${offerDetails.supplierName}"></td>
                    <td>
                        <span th:text="${offerDetails.pinpai}"></span><span th:text="${offerDetails.xinghao}"></span>;<br/><span th:text="${offerDetails.offerParameter}"></span>
                        <div th:if="${offerDetails.attribute3} ne null">
                        <!--<c:if test="${offerDetails.attribute3!=null}">-->
                            <!--<br/>-->
                            <!--<c:forEach items="${offerDetails.abs}" var="pe">-->
                            <div th:each="pe:${offerDetails.abs}">
                                <span>配选件：</span><span th:text="${pe.goodName}"></span>
                            </div>
                                <!--<%&#45;&#45; ，价格：${pe.attribite1}元 &#45;&#45;%><br/>-->
                            <!--</c:forEach>-->
                        <!--</c:if>-->
                        </div>
                    </td>
                    <td th:text="${offerDetails.offerAmount}"></td>
                </tr>
            <!--</c:forEach>-->
            </tbody>
        </table>


    </div>
</div>

<div style=" margin: 0px auto;width: 760px;">
    <input type="button" value="打印" onclick="previewContract(this);"style="display: block;width: 60px;float: right;margin-right: 40px;margin-top: 10px;font-size: 20px;" />
</div>
<th:block th:include="include :: footer" />
</body>
</html>